<% row = cycle("even", "odd") %>
<tr class="<%= row %>">
  <td><%= template.presentation %></td>
  <td><%= template.group.blank? ? "Není přiřazena" : t("enumerations.template.group.#{template.group}") %></td>
  <td>
    <% permitted_to? :delete, :admin_templates do %>
      <%= button_to_delete "X", admin_template_path(template) %>
    <% end %>
    <% permitted_to? :edit, :admin_templates do %>
      <%= button_to_edit "Editovat", edit_admin_template_path(template) %>
    <% end %>
  </td>
</tr>